import { forwardRef, Module } from '@nestjs/common';

import { DeviceCargoLaneModule } from '@/atm/device-cargo-lane/device-cargo-lane.module';
import { DepartmentConfigModule } from '@/dingding/department-config/department-config.module';

import { OrderModule } from '../order/order.module';
import { PointsModule } from '../points/points.module';
import { ProductController } from './product.controller';
import { Providers } from './product.providers';
import { ProductService } from './product.service';
import { DeviceExchangeLogModule } from '@/atm/device-exchange-log/device-exchange-log.module';

@Module({
  imports: [
    PointsModule,
    DepartmentConfigModule,
    DeviceExchangeLogModule,
    forwardRef(() => OrderModule),
    forwardRef(() => DeviceCargoLaneModule),
  ],
  controllers: [ProductController],
  providers: [...Providers, ProductService],
  exports: [ProductService],
})
export class ProductModule {}
